package com.esteel.settlement.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the TB_SETT_ACCOUNT_CHG database table.
 * 
 */
@Entity
@Table(name="TB_SETT_ACCOUNT_CHG")
@NamedQuery(name="TbSettAccountChg.findAll", query="SELECT t FROM TbSettAccountChg t")
public class TbSettAccountChg implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="TB_SETT_ACCOUNT_CHG_CHGID_GENERATOR", sequenceName="SEQ_SETT_ACCOUNT_CHG",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TB_SETT_ACCOUNT_CHG_CHGID_GENERATOR")
	@Column(name="CHG_ID")
	private long chgId;

	@Column(name="ACCT_FLAG")
	private int acctFlag;

	@Column(name="ACCT_NAME")
	private String acctName;

	@Column(name="BANK_CODE")
	private String bankCode;

	@Column(name="BANK_NAME")
	private String bankName;

	@Column(name="COUNTER_ID")
	private String counterId;

	@Column(name="CUST_ACCT_ID")
	private String custAcctId;

	@Column(name="CUST_NAME")
	private String custName;

	@Temporal(TemporalType.DATE)
	@Column(name="FINANCE_DATE")
	private Date financeDate;

	@Column(name="FINANCE_TYPE")
	private int financeType;

	@Column(name="FRONT_LOG_NO")
	private String frontLogNo;

	@Column(name="ID_CODE")
	private String idCode;

	@Column(name="ID_TYPE")
	private String idType;

	@Column(name="OLD_RELATED_ACCT_ID")
	private String oldRelatedAcctId;

	@Column(name="RELATED_ACCT_ID")
	private String relatedAcctId;

	private String reserve;

	@Column(name="SUP_ACCT_ID")
	private String supAcctId;

	@Column(name="THIRD_CUST_ID")
	private String thirdCustId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="TRAN_DATE")
	private Date tranDate;

	@Column(name="TRAN_TYPE")
	private int tranType;

	@Column(name="USER_SATUS")
	private int userSatus;

	public TbSettAccountChg() {
	}

	public long getChgId() {
		return this.chgId;
	}

	public void setChgId(long chgId) {
		this.chgId = chgId;
	}

	public int getAcctFlag() {
		return this.acctFlag;
	}

	public void setAcctFlag(int acctFlag) {
		this.acctFlag = acctFlag;
	}

	public String getAcctName() {
		return this.acctName;
	}

	public void setAcctName(String acctName) {
		this.acctName = acctName;
	}

	public String getBankCode() {
		return this.bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getBankName() {
		return this.bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getCounterId() {
		return this.counterId;
	}

	public void setCounterId(String counterId) {
		this.counterId = counterId;
	}

	public String getCustAcctId() {
		return this.custAcctId;
	}

	public void setCustAcctId(String custAcctId) {
		this.custAcctId = custAcctId;
	}

	public String getCustName() {
		return this.custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public Date getFinanceDate() {
		return this.financeDate;
	}

	public void setFinanceDate(Date financeDate) {
		this.financeDate = financeDate;
	}

	public int getFinanceType() {
		return this.financeType;
	}

	public void setFinanceType(int financeType) {
		this.financeType = financeType;
	}

	public String getFrontLogNo() {
		return this.frontLogNo;
	}

	public void setFrontLogNo(String frontLogNo) {
		this.frontLogNo = frontLogNo;
	}

	public String getIdCode() {
		return this.idCode;
	}

	public void setIdCode(String idCode) {
		this.idCode = idCode;
	}

	public String getIdType() {
		return this.idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	public String getOldRelatedAcctId() {
		return this.oldRelatedAcctId;
	}

	public void setOldRelatedAcctId(String oldRelatedAcctId) {
		this.oldRelatedAcctId = oldRelatedAcctId;
	}

	public String getRelatedAcctId() {
		return this.relatedAcctId;
	}

	public void setRelatedAcctId(String relatedAcctId) {
		this.relatedAcctId = relatedAcctId;
	}

	public String getReserve() {
		return this.reserve;
	}

	public void setReserve(String reserve) {
		this.reserve = reserve;
	}

	public String getSupAcctId() {
		return this.supAcctId;
	}

	public void setSupAcctId(String supAcctId) {
		this.supAcctId = supAcctId;
	}

	public String getThirdCustId() {
		return this.thirdCustId;
	}

	public void setThirdCustId(String thirdCustId) {
		this.thirdCustId = thirdCustId;
	}

	public Date getTranDate() {
		return this.tranDate;
	}

	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}

	public int getTranType() {
		return this.tranType;
	}

	public void setTranType(int tranType) {
		this.tranType = tranType;
	}

	public int getUserSatus() {
		return this.userSatus;
	}

	public void setUserSatus(int userSatus) {
		this.userSatus = userSatus;
	}

}